home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / DModalBarsData.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  2.6 KB  |  112 lines  |  [TEXT/CWIE]

  1. // DModalBarsData -- data class for Everything
  2.  
  3. #pragma once
  4.  
  5. #include "AMDataDef.h"
  6.  
  7. class LFileStream;
  8.  
  9.  
  10. const long    idBars2        = 'Bar2';
  11. const long    idStandard5        = 'Sta5';
  12. const long    idGraphic4        = 'Gra4';
  13. const long    idSlider2        = 'Sli2';
  14. const long    idTickMarks2        = 'Tic2';
  15. const long    idNonDirectional2        = 'Non2';
  16. const long    idLittleArrows2        = 'Lit2';
  17. const long    idSpinner2        = 'Spi2';
  18. const long    idVolumeControl2        = 'Vol2';
  19. const long    idJimSSlider2        = 'Jim2';
  20. const long    idStandard6        = 'Sta6';
  21. const long    idIndeterminate2        = 'Ind2';
  22. const long    idChasingArrows2        = 'Cha2';
  23. const long    idRectangle2        = 'Rec2';
  24. const long    idRoundRect2        = 'Rou2';
  25. const long    idBarberPole2        = 'Bar3';
  26. const long    idRoundBarber2        = 'Rou3';
  27.  
  28.  
  29. //----------
  30. class DModalBarsData : public AMDataDef {
  31. public:
  32.                 DModalBarsData ();
  33.     virtual        ~DModalBarsData ();
  34.  
  35. public:
  36.     void        CopyFrom        (DModalBarsData*        inOther);
  37.     void        ReadFromFile    (LFileStream*        inFile);
  38.     void        WriteToFile        (LFileStream*        inFile);
  39.  
  40. public:        // accessors
  41.     UInt16        GetBars2 () const;
  42.     void        SetBars2    (UInt16        inValue);
  43.  
  44.     SInt16        GetStandard5 () const;
  45.     void        SetStandard5    (SInt16        inValue);
  46.  
  47.     SInt16        GetGraphic4 () const;
  48.     void        SetGraphic4    (SInt16        inValue);
  49.  
  50.     SInt16        GetSlider2 () const;
  51.     void        SetSlider2    (SInt16        inValue);
  52.  
  53.     SInt16        GetTickMarks2 () const;
  54.     void        SetTickMarks2    (SInt16        inValue);
  55.  
  56.     SInt16        GetNonDirectional2 () const;
  57.     void        SetNonDirectional2    (SInt16        inValue);
  58.  
  59.     SInt16        GetLittleArrows2 () const;
  60.     void        SetLittleArrows2    (SInt16        inValue);
  61.  
  62.     SInt16        GetSpinner2 () const;
  63.     void        SetSpinner2    (SInt16        inValue);
  64.  
  65.     SInt16        GetVolumeControl2 () const;
  66.     void        SetVolumeControl2    (SInt16        inValue);
  67.  
  68.     SInt16        GetJimSSlider2 () const;
  69.     void        SetJimSSlider2    (SInt16        inValue);
  70.  
  71.     SInt16        GetStandard6 () const;
  72.     void        SetStandard6    (SInt16        inValue);
  73.  
  74.     SInt16        GetIndeterminate2 () const;
  75.     void        SetIndeterminate2    (SInt16        inValue);
  76.  
  77.     SInt16        GetChasingArrows2 () const;
  78.     void        SetChasingArrows2    (SInt16        inValue);
  79.  
  80.     SInt16        GetRectangle2 () const;
  81.     void        SetRectangle2    (SInt16        inValue);
  82.  
  83.     SInt16        GetRoundRect2 () const;
  84.     void        SetRoundRect2    (SInt16        inValue);
  85.  
  86.     SInt16        GetBarberPole2 () const;
  87.     void        SetBarberPole2    (SInt16        inValue);
  88.  
  89.     SInt16        GetRoundBarber2 () const;
  90.     void        SetRoundBarber2    (SInt16        inValue);
  91.  
  92.  
  93. protected:
  94.     UInt16        mBars2;
  95.     SInt16        mStandard5;
  96.     SInt16        mGraphic4;
  97.     SInt16        mSlider2;
  98.     SInt16        mTickMarks2;
  99.     SInt16        mNonDirectional2;
  100.     SInt16        mLittleArrows2;
  101.     SInt16        mSpinner2;
  102.     SInt16        mVolumeControl2;
  103.     SInt16        mJimSSlider2;
  104.     SInt16        mStandard6;
  105.     SInt16        mIndeterminate2;
  106.     SInt16        mChasingArrows2;
  107.     SInt16        mRectangle2;
  108.     SInt16        mRoundRect2;
  109.     SInt16        mBarberPole2;
  110.     SInt16        mRoundBarber2;
  111. };
  112.